package club.adger.controller;

import club.adger.entity.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: Adger
 * @Date: 2020/08/28/12:19
 */
@Controller
@RequestMapping("/tag")
public class TagController {

    @GetMapping("/get")
    public ModelAndView get(){
        ModelAndView modelAndView = new ModelAndView("tag");
        Student student = new Student(1L, "Adger", 22);
        modelAndView.addObject("student", student);
        return modelAndView;
    }
}
